<template>
  <div class="table">
    <a-table :columns="columns" :data-source="data" :scroll="{ x: xScroll, y: 450 }" :customRow="customRow">
      <template #bodyCell="{ column,index }" >
        <template v-if="column.title == '操作'"  slot-scope="scope">
          <slot name="nameSlot" :scope="data[index]"></slot>
        </template>
      </template>
    </a-table>
  </div>
</template>

<script>
import tables from '../server/table'
export default tables
</script>

<style  lang="less">
.table{
  .ant-table-cell-fix-right-first{
    display: flex;
    justify-content: space-around;
  }
}

</style>